package com.ktkj.init.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
@Data
public class UserInfoForm {

    @NotBlank(message = "用户姓名不能为空！")
    @ApiModelProperty(value = "用户姓名", example = "admin")
    private String userName;

    @NotBlank(message = "登录密码不能为空！")
    @ApiModelProperty(value = "登录密码", example = "123456")
    private String password;

    @NotNull(message = "状态不能为空！")
    @ApiModelProperty(value = "状态（0：禁用 1：启用）", example = "1")
    private Integer state;

    @ApiModelProperty(value = "角色id集合（多个id用,隔开）", example = "1,2,3")
    private String roleIds;

    @ApiModelProperty(value = "id(修改时必须输入)", example = "1")
    private Long id;

}
